﻿using SmartWMS.Domain.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartWMS.Domain.BusinessManage
{
    /// <summary>
    /// 财务记账表
    /// </summary>
    public class Accounting : KeyEntity
    {
        /// <summary>
        /// 流水号
        /// </summary>
        [MaxLength(30)]
        public string? SerialNo { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        [MaxLength(50)]
        public string? Name { get; set; }
        /// <summary>
        /// 财务类别
        /// </summary>
        public int ClassifyId { get; set; }
        /// <summary>
        /// 收款方/付款方
        /// </summary>
        [MaxLength(50)]
        public string? PayOrCollection { get; set; }
        /// <summary>
        /// 类型(应收/应付)
        /// </summary>
        [MaxLength(20)]
        public string? Type { get; set; }
        /// <summary>
        /// 付款金额
        /// </summary>
        public decimal PayPrice { get; set; }
        /// <summary>
        /// 付款时间
        /// </summary>
        public DateTime Paytime { get; set; }
        /// <summary>
        /// 付款机构
        /// </summary>
        [MaxLength(20)]
        public string? PayInstitution { get; set; }
    }
}
